Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[explore-v2] make chart container work with existing visualization files #1333

Merged
merged 6 commits into from
Oct 14, 2016
Merged

[explore-v2] make chart container work with existing visualization files #1333

merged 6 commits into from
Oct 14, 2016

Conversation

ascott
Copy link
Contributor

@ascott ascott commented Oct 13, 2016

  • makes <ChartContainer /> use existing visualization js files to render charts.

todo:

/exploreV2/ with line, bar, area, pie, bubble, box_plot

screenshot 2016-10-12 18 15 36
screenshot 2016-10-12 18 15 57
screenshot 2016-10-12 18 16 21
screenshot 2016-10-12 18 17 06
screenshot 2016-10-12 18 17 34
screenshot 2016-10-12 18 18 08

cc @mistercrunch @vera-liu

@@ -3,28 +3,63 @@ import { connect } from 'react-redux';
import { Panel } from 'react-bootstrap';
import TimeSeriesLineChart from './charts/TimeSeriesLineChart';
import moment from 'moment';
import nvd3Vis from '../../../visualizations/nvd3_vis';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To generalize here you'll be able to import the object that maps the visualization type string to the object, it's in ../../../visualizations/nvd3_vis

return this.props.vizType === 'line';
renderVis() {
const slice = this.getMockedSliceObject();
nvd3Vis(slice).render();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then here use: vizMap[vizType](slice).render()

@ascott ascott changed the title WIP -- [explore-v2] make chart container work with nvd3_vis.js WIP -- [explore-v2] make chart container work with existing visualization files Oct 13, 2016
@ascott ascott changed the title WIP -- [explore-v2] make chart container work with existing visualization files [explore-v2] make chart container work with existing visualization files Oct 13, 2016
@ascott
Copy link
Contributor Author

ascott commented Oct 13, 2016

@mistercrunch added support to use the mapping from vis type to vis file. i removed some components I had duplicated in explorev2, and also removed the new line chart in favor of using the existing viz files. i added an issue documenting the outstanding issues with wrapping the vis's in V2 and will make another PR with fixes for those. #1341. PTAL!

@ascott ascott merged commit b669a14 into apache:master Oct 14, 2016
@ascott ascott deleted the alanna-wrap-existing-viz branch October 14, 2016 19:54
@dpgaspar dpgaspar mentioned this pull request Mar 29, 2020
12 tasks
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.12.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants